; ModuleID = 'comm_time_1.c'
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32"
target triple = "i386-pc-linux-gnu"

%struct.MPI_Status = type { i32, i32, i32, i32, i32 }
%struct._IO_FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct._IO_FILE*, i32, i32, i32, i16, i8, [1 x i8], i8*, i64, i8*, i8*, i8*, i8*, i32, i32, [40 x i8] }
%struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, i32 }
%struct.ompi_communicator_t = type opaque
%struct.ompi_datatype_t = type opaque
%struct.ompi_predefined_communicator_t = type opaque
%struct.ompi_predefined_datatype_t = type opaque

@ompi_mpi_comm_world = external global %struct.ompi_predefined_communicator_t
@.str = private constant [1 x i8] zeroinitializer, align 1
@.str1 = private constant [40 x i8] c"Before Initialize, p = %d, my_rank = %d\00", align 4
@.str2 = private constant [43 x i8] c"Before MPI_Recv, source = %d, my_rank = %d\00", align 4
@ompi_mpi_float = external global %struct.ompi_predefined_datatype_t
@.str3 = private constant [41 x i8] c"Before MPI_Send, dest = %d, my_rank = %d\00", align 4
@ompi_mpi_double = external global %struct.ompi_predefined_datatype_t
@.str4 = private constant [25 x i8] c"Message size (floats):  \00", align 1
@.str5 = private constant [6 x i8] c"%10d \00", align 1
@.str6 = private constant [25 x i8] c"Avg circuit time (ms):  \00", align 1
@.str7 = private constant [6 x i8] c"%10f \00", align 1
@.str8 = private constant [25 x i8] c"Max circuit time (ms):  \00", align 1
@.str9 = private constant [25 x i8] c"Min circuit time (ms):  \00", align 1
@.str10 = private constant [2 x i8] c"\0A\00", align 1
@stdout = external global %struct._IO_FILE*

define i32 @main(i32 %argc, i8** %argv) nounwind {
entry:
  %argc_addr = alloca i32, align 4
  %argv_addr = alloca i8**, align 4
  %retval = alloca i32
  %test_count = alloca i32
  %max_size = alloca i32
  %min_size = alloca i32
  %size_incr = alloca i32
  %x = alloca float*
  %times = alloca double*
  %max_times = alloca double*
  %min_times = alloca double*
  %time_array_order = alloca i32
  %start = alloca double, align 8
  %elapsed = alloca double, align 8
  %i = alloca i32
  %test = alloca i32
  %size = alloca i32
  %p = alloca i32
  %my_rank = alloca i32
  %source = alloca i32
  %dest = alloca i32
  %io_comm = alloca %struct.ompi_communicator_t*
  %status = alloca %struct.MPI_Status
  %"alloca point" = bitcast i32 0 to i32
  store i32 %argc, i32* %argc_addr
  store i8** %argv, i8*** %argv_addr
  store i32 2, i32* %test_count, align 4
  store i32 1000, i32* %max_size, align 4
  store i32 1000, i32* %min_size, align 4
  store i32 1000, i32* %size_incr, align 4
  %0 = call i32 @MPI_Init(i32* %argc_addr, i8*** %argv_addr) nounwind
  %1 = call i32 @MPI_Comm_size(%struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*), i32* %p) nounwind
  %2 = call i32 @MPI_Comm_rank(%struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*), i32* %my_rank) nounwind
  %3 = call i32 @MPI_Comm_dup(%struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*), %struct.ompi_communicator_t** %io_comm) nounwind
  %4 = load %struct.ompi_communicator_t** %io_comm, align 4
  %5 = call i32 @Cache_io_rank(%struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*), %struct.ompi_communicator_t* %4) nounwind
  %6 = load i32* %my_rank, align 4
  %7 = load i32* %p, align 4
  %8 = load %struct.ompi_communicator_t** %io_comm, align 4
  %9 = call i32 (%struct.ompi_communicator_t*, i8*, i8*, ...)* @Cprintf(%struct.ompi_communicator_t* %8, i8* getelementptr inbounds ([1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([40 x i8]* @.str1, i32 0, i32 0), i32 %7, i32 %6) nounwind
  %10 = load i32* %my_rank, align 4
  %11 = load i32* %max_size, align 4
  %12 = load i32* %min_size, align 4
  %13 = load i32* %size_incr, align 4
  call void @Initialize(i32 %11, i32 %12, i32 %13, i32 %10, float** %x, double** %times, double** %max_times, double** %min_times, i32* %time_array_order) nounwind
  %14 = load i32* %my_rank, align 4
  %15 = sub nsw i32 %14, 1
  %16 = load i32* %p, align 4
  %17 = srem i32 %15, %16
  store i32 %17, i32* %source, align 4
  %18 = load i32* %my_rank, align 4
  %19 = add nsw i32 %18, 1
  %20 = load i32* %p, align 4
  %21 = srem i32 %19, %20
  store i32 %21, i32* %dest, align 4
  %22 = load i32* %min_size, align 4
  store i32 %22, i32* %size, align 4
  store i32 0, i32* %i, align 4
  br label %bb8

bb:                                               ; preds = %bb8
  %23 = load double** %times, align 4
  %24 = load i32* %i, align 4
  %25 = getelementptr inbounds double* %23, i32 %24
  store double 0.000000e+00, double* %25, align 1
  %26 = load double** %max_times, align 4
  %27 = load i32* %i, align 4
  %28 = getelementptr inbounds double* %26, i32 %27
  store double 0.000000e+00, double* %28, align 1
  %29 = load double** %min_times, align 4
  %30 = load i32* %i, align 4
  %31 = getelementptr inbounds double* %29, i32 %30
  store double 1.000000e+06, double* %31, align 1
  store i32 0, i32* %test, align 4
  br label %bb6

bb1:                                              ; preds = %bb6
  %32 = call double @MPI_Wtime() nounwind
  store double %32, double* %start, align 8
  %33 = load i32* %my_rank, align 4
  %34 = load %struct.ompi_communicator_t** %io_comm, align 4
  %35 = load i32* %source, align 4
  %36 = call i32 (%struct.ompi_communicator_t*, i8*, i8*, ...)* @Cprintf(%struct.ompi_communicator_t* %34, i8* getelementptr inbounds ([1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([43 x i8]* @.str2, i32 0, i32 0), i32 %35, i32 %33) nounwind
  %37 = load float** %x, align 4
  %38 = bitcast float* %37 to i8*
  %39 = load i32* %size, align 4
  %40 = load i32* %source, align 4
  %41 = call i32 @MPI_Recv(i8* %38, i32 %39, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_float to %struct.ompi_datatype_t*), i32 %40, i32 0, %struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*), %struct.MPI_Status* %status) nounwind
  %42 = load i32* %my_rank, align 4
  %43 = load %struct.ompi_communicator_t** %io_comm, align 4
  %44 = load i32* %dest, align 4
  %45 = call i32 (%struct.ompi_communicator_t*, i8*, i8*, ...)* @Cprintf(%struct.ompi_communicator_t* %43, i8* getelementptr inbounds ([1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([41 x i8]* @.str3, i32 0, i32 0), i32 %44, i32 %42) nounwind
  %46 = load float** %x, align 4
  %47 = bitcast float* %46 to i8*
  %48 = load i32* %size, align 4
  %49 = load i32* %dest, align 4
  %50 = call i32 @MPI_Send(i8* %47, i32 %48, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_float to %struct.ompi_datatype_t*), i32 %49, i32 0, %struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*)) nounwind
  %51 = call double @MPI_Wtime() nounwind
  %52 = load double* %start, align 8
  %53 = fsub double %51, %52
  store double %53, double* %elapsed, align 8
  %54 = load double** %times, align 4
  %55 = load double** %times, align 4
  %56 = load i32* %i, align 4
  %57 = getelementptr inbounds double* %55, i32 %56
  %58 = load double* %57, align 1
  %59 = load double* %elapsed, align 8
  %60 = fadd double %58, %59
  %61 = load i32* %i, align 4
  %62 = getelementptr inbounds double* %54, i32 %61
  store double %60, double* %62, align 1
  %63 = load double** %max_times, align 4
  %64 = load i32* %i, align 4
  %65 = getelementptr inbounds double* %63, i32 %64
  %66 = load double* %65, align 1
  %67 = load double* %elapsed, align 8
  %68 = fcmp olt double %66, %67
  br i1 %68, label %bb2, label %bb3

bb2:                                              ; preds = %bb1
  %69 = load double** %max_times, align 4
  %70 = load i32* %i, align 4
  %71 = getelementptr inbounds double* %69, i32 %70
  %72 = load double* %elapsed, align 8
  store double %72, double* %71, align 1
  br label %bb3

bb3:                                              ; preds = %bb2, %bb1
  %73 = load double** %min_times, align 4
  %74 = load i32* %i, align 4
  %75 = getelementptr inbounds double* %73, i32 %74
  %76 = load double* %75, align 1
  %77 = load double* %elapsed, align 8
  %78 = fcmp ogt double %76, %77
  br i1 %78, label %bb4, label %bb5

bb4:                                              ; preds = %bb3
  %79 = load double** %min_times, align 4
  %80 = load i32* %i, align 4
  %81 = getelementptr inbounds double* %79, i32 %80
  %82 = load double* %elapsed, align 8
  store double %82, double* %81, align 1
  br label %bb5

bb5:                                              ; preds = %bb4, %bb3
  %83 = load i32* %test, align 4
  %84 = add nsw i32 %83, 1
  store i32 %84, i32* %test, align 4
  br label %bb6

bb6:                                              ; preds = %bb5, %bb
  %85 = load i32* %test, align 4
  %86 = load i32* %test_count, align 4
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %bb1, label %bb7

bb7:                                              ; preds = %bb6
  %88 = load i32* %size, align 4
  %89 = load i32* %size_incr, align 4
  %90 = add nsw i32 %88, %89
  store i32 %90, i32* %size, align 4
  %91 = load i32* %i, align 4
  %92 = add nsw i32 %91, 1
  store i32 %92, i32* %i, align 4
  br label %bb8

bb8:                                              ; preds = %bb7, %entry
  %93 = load i32* %size, align 4
  %94 = load i32* %max_size, align 4
  %95 = icmp sle i32 %93, %94
  br i1 %95, label %bb, label %bb9

bb9:                                              ; preds = %bb8
  %96 = load double** %min_times, align 4
  %97 = load double** %max_times, align 4
  %98 = load double** %times, align 4
  %99 = load i32* %time_array_order, align 4
  %100 = load i32* %my_rank, align 4
  %101 = load %struct.ompi_communicator_t** %io_comm, align 4
  %102 = load i32* %min_size, align 4
  %103 = load i32* %max_size, align 4
  %104 = load i32* %size_incr, align 4
  %105 = load i32* %test_count, align 4
  call void @Print_results(%struct.ompi_communicator_t* %101, i32 %100, i32 %102, i32 %103, i32 %104, i32 %99, i32 %105, double* %98, double* %97, double* %96) nounwind
  %106 = call i32 @MPI_Finalize() nounwind
  br label %return

return:                                           ; preds = %bb9
  %retval10 = load i32* %retval
  ret i32 %retval10
}

declare i32 @MPI_Init(i32*, i8***)

declare i32 @MPI_Comm_size(%struct.ompi_communicator_t*, i32*)

declare i32 @MPI_Comm_rank(%struct.ompi_communicator_t*, i32*)

declare i32 @MPI_Comm_dup(%struct.ompi_communicator_t*, %struct.ompi_communicator_t**)

declare i32 @Cache_io_rank(%struct.ompi_communicator_t*, %struct.ompi_communicator_t*)

declare i32 @Cprintf(%struct.ompi_communicator_t*, i8*, i8*, ...)

declare double @MPI_Wtime()

declare i32 @MPI_Recv(i8*, i32, %struct.ompi_datatype_t*, i32, i32, %struct.ompi_communicator_t*, %struct.MPI_Status*)

declare i32 @MPI_Send(i8*, i32, %struct.ompi_datatype_t*, i32, i32, %struct.ompi_communicator_t*)

declare i32 @MPI_Finalize()

define void @Initialize(i32 %max_size, i32 %min_size, i32 %size_incr, i32 %my_rank, float** %x_ptr, double** %times_ptr, double** %max_times_ptr, double** %min_times_ptr, i32* %order_ptr) nounwind {
entry:
  %max_size_addr = alloca i32, align 4
  %min_size_addr = alloca i32, align 4
  %size_incr_addr = alloca i32, align 4
  %my_rank_addr = alloca i32, align 4
  %x_ptr_addr = alloca float**, align 4
  %times_ptr_addr = alloca double**, align 4
  %max_times_ptr_addr = alloca double**, align 4
  %min_times_ptr_addr = alloca double**, align 4
  %order_ptr_addr = alloca i32*, align 4
  %i = alloca i32
  %"alloca point" = bitcast i32 0 to i32
  store i32 %max_size, i32* %max_size_addr
  store i32 %min_size, i32* %min_size_addr
  store i32 %size_incr, i32* %size_incr_addr
  store i32 %my_rank, i32* %my_rank_addr
  store float** %x_ptr, float*** %x_ptr_addr
  store double** %times_ptr, double*** %times_ptr_addr
  store double** %max_times_ptr, double*** %max_times_ptr_addr
  store double** %min_times_ptr, double*** %min_times_ptr_addr
  store i32* %order_ptr, i32** %order_ptr_addr
  %0 = load i32* %max_size_addr, align 4
  %1 = mul i32 %0, 4
  %2 = call noalias i8* @malloc(i32 %1) nounwind
  %3 = bitcast i8* %2 to float*
  %4 = load float*** %x_ptr_addr, align 4
  store float* %3, float** %4, align 4
  %5 = load i32* %max_size_addr, align 4
  %6 = load i32* %min_size_addr, align 4
  %7 = sub nsw i32 %5, %6
  %8 = load i32* %size_incr_addr, align 4
  %9 = sdiv i32 %7, %8
  %10 = load i32** %order_ptr_addr, align 4
  store i32 %9, i32* %10, align 4
  %11 = load i32** %order_ptr_addr, align 4
  %12 = load i32* %11, align 4
  %13 = mul i32 %12, 8
  %14 = call noalias i8* @malloc(i32 %13) nounwind
  %15 = bitcast i8* %14 to double*
  %16 = load double*** %times_ptr_addr, align 4
  store double* %15, double** %16, align 4
  %17 = load i32** %order_ptr_addr, align 4
  %18 = load i32* %17, align 4
  %19 = mul i32 %18, 8
  %20 = call noalias i8* @malloc(i32 %19) nounwind
  %21 = bitcast i8* %20 to double*
  %22 = load double*** %max_times_ptr_addr, align 4
  store double* %21, double** %22, align 4
  %23 = load i32** %order_ptr_addr, align 4
  %24 = load i32* %23, align 4
  %25 = mul i32 %24, 8
  %26 = call noalias i8* @malloc(i32 %25) nounwind
  %27 = bitcast i8* %26 to double*
  %28 = load double*** %min_times_ptr_addr, align 4
  store double* %27, double** %28, align 4
  store i32 0, i32* %i, align 4
  br label %bb1

bb:                                               ; preds = %bb1
  %29 = load float*** %x_ptr_addr, align 4
  %30 = load float** %29, align 4
  %31 = load i32* %my_rank_addr, align 4
  %32 = sitofp i32 %31 to float
  %33 = load i32* %i, align 4
  %34 = getelementptr inbounds float* %30, i32 %33
  store float %32, float* %34, align 1
  %35 = load i32* %i, align 4
  %36 = add nsw i32 %35, 1
  store i32 %36, i32* %i, align 4
  br label %bb1

bb1:                                              ; preds = %bb, %entry
  %37 = load i32* %i, align 4
  %38 = load i32* %max_size_addr, align 4
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %bb, label %bb2

bb2:                                              ; preds = %bb1
  br label %return

return:                                           ; preds = %bb2
  ret void
}

declare noalias i8* @malloc(i32) nounwind

define void @Print_results(%struct.ompi_communicator_t* %io_comm, i32 %my_rank, i32 %min_size, i32 %max_size, i32 %size_incr, i32 %time_array_order, i32 %test_count, double* %times, double* %max_times, double* %min_times) nounwind {
entry:
  %io_comm_addr = alloca %struct.ompi_communicator_t*, align 4
  %my_rank_addr = alloca i32, align 4
  %min_size_addr = alloca i32, align 4
  %max_size_addr = alloca i32, align 4
  %size_incr_addr = alloca i32, align 4
  %time_array_order_addr = alloca i32, align 4
  %test_count_addr = alloca i32, align 4
  %times_addr = alloca double*, align 4
  %max_times_addr = alloca double*, align 4
  %min_times_addr = alloca double*, align 4
  %i = alloca i32
  %size = alloca i32
  %status = alloca %struct.MPI_Status
  %io_process = alloca i32
  %io_rank = alloca i32
  %"alloca point" = bitcast i32 0 to i32
  store %struct.ompi_communicator_t* %io_comm, %struct.ompi_communicator_t** %io_comm_addr
  store i32 %my_rank, i32* %my_rank_addr
  store i32 %min_size, i32* %min_size_addr
  store i32 %max_size, i32* %max_size_addr
  store i32 %size_incr, i32* %size_incr_addr
  store i32 %time_array_order, i32* %time_array_order_addr
  store i32 %test_count, i32* %test_count_addr
  store double* %times, double** %times_addr
  store double* %max_times, double** %max_times_addr
  store double* %min_times, double** %min_times_addr
  %0 = load %struct.ompi_communicator_t** %io_comm_addr, align 4
  %1 = call i32 @Get_io_rank(%struct.ompi_communicator_t* %0, i32* %io_process) nounwind
  %2 = load %struct.ompi_communicator_t** %io_comm_addr, align 4
  %3 = call i32 @MPI_Comm_rank(%struct.ompi_communicator_t* %2, i32* %io_rank) nounwind
  %4 = load i32* %my_rank_addr, align 4
  %5 = icmp eq i32 %4, 0
  br i1 %5, label %bb, label %bb1

bb:                                               ; preds = %entry
  %6 = load i32* %io_rank, align 4
  %7 = load double** %times_addr, align 4
  %8 = bitcast double* %7 to i8*
  %9 = load i32* %time_array_order_addr, align 4
  %10 = load %struct.ompi_communicator_t** %io_comm_addr, align 4
  %11 = call i32 @MPI_Send(i8* %8, i32 %9, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_double to %struct.ompi_datatype_t*), i32 %6, i32 0, %struct.ompi_communicator_t* %10) nounwind
  %12 = load i32* %io_process, align 4
  %13 = load double** %max_times_addr, align 4
  %14 = bitcast double* %13 to i8*
  %15 = load i32* %time_array_order_addr, align 4
  %16 = load %struct.ompi_communicator_t** %io_comm_addr, align 4
  %17 = call i32 @MPI_Send(i8* %14, i32 %15, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_double to %struct.ompi_datatype_t*), i32 %12, i32 0, %struct.ompi_communicator_t* %16) nounwind
  %18 = load i32* %io_process, align 4
  %19 = load double** %min_times_addr, align 4
  %20 = bitcast double* %19 to i8*
  %21 = load i32* %time_array_order_addr, align 4
  %22 = load %struct.ompi_communicator_t** %io_comm_addr, align 4
  %23 = call i32 @MPI_Send(i8* %20, i32 %21, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_double to %struct.ompi_datatype_t*), i32 %18, i32 0, %struct.ompi_communicator_t* %22) nounwind
  br label %bb1

bb1:                                              ; preds = %bb, %entry
  %24 = load i32* %io_rank, align 4
  %25 = load i32* %io_process, align 4
  %26 = icmp eq i32 %24, %25
  br i1 %26, label %bb2, label %bb15

bb2:                                              ; preds = %bb1
  %27 = load double** %times_addr, align 4
  %28 = bitcast double* %27 to i8*
  %29 = load i32* %time_array_order_addr, align 4
  %30 = load %struct.ompi_communicator_t** %io_comm_addr, align 4
  %31 = call i32 @MPI_Recv(i8* %28, i32 %29, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_double to %struct.ompi_datatype_t*), i32 -1, i32 0, %struct.ompi_communicator_t* %30, %struct.MPI_Status* %status) nounwind
  %32 = load double** %max_times_addr, align 4
  %33 = bitcast double* %32 to i8*
  %34 = load i32* %time_array_order_addr, align 4
  %35 = load %struct.ompi_communicator_t** %io_comm_addr, align 4
  %36 = call i32 @MPI_Recv(i8* %33, i32 %34, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_double to %struct.ompi_datatype_t*), i32 -1, i32 0, %struct.ompi_communicator_t* %35, %struct.MPI_Status* %status) nounwind
  %37 = load double** %min_times_addr, align 4
  %38 = bitcast double* %37 to i8*
  %39 = load i32* %time_array_order_addr, align 4
  %40 = load %struct.ompi_communicator_t** %io_comm_addr, align 4
  %41 = call i32 @MPI_Recv(i8* %38, i32 %39, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_double to %struct.ompi_datatype_t*), i32 -1, i32 0, %struct.ompi_communicator_t* %40, %struct.MPI_Status* %status) nounwind
  %42 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([25 x i8]* @.str4, i32 0, i32 0)) nounwind
  %43 = load i32* %min_size_addr, align 4
  store i32 %43, i32* %size, align 4
  br label %bb4

bb3:                                              ; preds = %bb4
  %44 = load i32* %size, align 4
  %45 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([6 x i8]* @.str5, i32 0, i32 0), i32 %44) nounwind
  %46 = load i32* %size, align 4
  %47 = load i32* %size_incr_addr, align 4
  %48 = add nsw i32 %46, %47
  store i32 %48, i32* %size, align 4
  br label %bb4

bb4:                                              ; preds = %bb3, %bb2
  %49 = load i32* %size, align 4
  %50 = load i32* %max_size_addr, align 4
  %51 = icmp sle i32 %49, %50
  br i1 %51, label %bb3, label %bb5

bb5:                                              ; preds = %bb4
  %52 = call i32 @putchar(i32 10) nounwind
  %53 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([25 x i8]* @.str6, i32 0, i32 0)) nounwind
  store i32 0, i32* %i, align 4
  br label %bb7

bb6:                                              ; preds = %bb7
  %54 = load double** %times_addr, align 4
  %55 = load i32* %i, align 4
  %56 = getelementptr inbounds double* %54, i32 %55
  %57 = load double* %56, align 1
  %58 = fmul double %57, 1.000000e+03
  %59 = load i32* %test_count_addr, align 4
  %60 = sitofp i32 %59 to double
  %61 = fdiv double %58, %60
  %62 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([6 x i8]* @.str7, i32 0, i32 0), double %61) nounwind
  %63 = load i32* %i, align 4
  %64 = add nsw i32 %63, 1
  store i32 %64, i32* %i, align 4
  br label %bb7

bb7:                                              ; preds = %bb6, %bb5
  %65 = load i32* %i, align 4
  %66 = load i32* %time_array_order_addr, align 4
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %bb6, label %bb8

bb8:                                              ; preds = %bb7
  %68 = call i32 @putchar(i32 10) nounwind
  %69 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([25 x i8]* @.str8, i32 0, i32 0)) nounwind
  store i32 0, i32* %i, align 4
  br label %bb10

bb9:                                              ; preds = %bb10
  %70 = load double** %max_times_addr, align 4
  %71 = load i32* %i, align 4
  %72 = getelementptr inbounds double* %70, i32 %71
  %73 = load double* %72, align 1
  %74 = fmul double %73, 1.000000e+03
  %75 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([6 x i8]* @.str7, i32 0, i32 0), double %74) nounwind
  %76 = load i32* %i, align 4
  %77 = add nsw i32 %76, 1
  store i32 %77, i32* %i, align 4
  br label %bb10

bb10:                                             ; preds = %bb9, %bb8
  %78 = load i32* %i, align 4
  %79 = load i32* %time_array_order_addr, align 4
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %bb9, label %bb11

bb11:                                             ; preds = %bb10
  %81 = call i32 @putchar(i32 10) nounwind
  %82 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([25 x i8]* @.str9, i32 0, i32 0)) nounwind
  store i32 0, i32* %i, align 4
  br label %bb13

bb12:                                             ; preds = %bb13
  %83 = load double** %min_times_addr, align 4
  %84 = load i32* %i, align 4
  %85 = getelementptr inbounds double* %83, i32 %84
  %86 = load double* %85, align 1
  %87 = fmul double %86, 1.000000e+03
  %88 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([6 x i8]* @.str7, i32 0, i32 0), double %87) nounwind
  %89 = load i32* %i, align 4
  %90 = add nsw i32 %89, 1
  store i32 %90, i32* %i, align 4
  br label %bb13

bb13:                                             ; preds = %bb12, %bb11
  %91 = load i32* %i, align 4
  %92 = load i32* %time_array_order_addr, align 4
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %bb12, label %bb14

bb14:                                             ; preds = %bb13
  %94 = call i32 @puts(i8* getelementptr inbounds ([2 x i8]* @.str10, i32 0, i32 0)) nounwind
  %95 = load %struct._IO_FILE** @stdout, align 4
  %96 = call i32 @fflush(%struct._IO_FILE* %95) nounwind
  br label %bb15

bb15:                                             ; preds = %bb14, %bb1
  br label %return

return:                                           ; preds = %bb15
  ret void
}

declare i32 @Get_io_rank(%struct.ompi_communicator_t*, i32*)

declare i32 @printf(i8* noalias, ...) nounwind

declare i32 @putchar(i32)

declare i32 @puts(i8*)

declare i32 @fflush(%struct._IO_FILE*)
